<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{% block title %}信息管理系统{% endblock %}</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.1/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .main-content {
            margin-top: 20px;
            padding: 20px;
        }
        .navbar-brand {
            padding-left: 20px;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container-fluid">
            <a class="navbar-brand" href="/">信息管理系统</a>
            <div class="collapse navbar-collapse">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link {% if request.path == url_for('info_list') %}active{% endif %}" href="{{ url_for('info_list') }}">信息管理</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link {% if request.path == url_for('dict_list', dict_type='style') %}active{% endif %}" href="{{ url_for('dict_list', dict_type='style') }}">风格维护</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link {% if request.path == url_for('dict_list', dict_type='platform') %}active{% endif %}" href="{{ url_for('dict_list', dict_type='platform') }}">平台维护</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-content">
        {% block content %}{% endblock %}
    </div>

    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.1/js/bootstrap.bundle.min.js"></script>
</body>
</html>